//跳转调用接口页面***
import React, { useCallback } from 'react';
import chainmakerLogo from '../assets/svgs/chainmakerLogo.svg';
import chainmakerLOGOLogin from '../assets/svgs/chainmakerLOGOLogin.svg';
import '../login.css';
import { versionConfig } from '@/config';
import { getCallbackNet } from '@/api/index';//get 使用getCallbackNet，Post 用 postCallbackNet
export default function LoginPage() {
  //页面初始化的时候判断url
  let thisHref=window.location.href;
  //判断本地cookie是否有userId
  let cookies=document.cookie;
  let cookiesArr=cookies.split(';');
  let userIdValue;
  cookiesArr.forEach((item,index)=>{
    if(item.split('=')[0]=='userId'){
      userIdValue=item.split('=')[1].trim();
    }
  });
  if(userIdValue){//如果有userId
    //调用接口***
    //get 接口调用----getCallbackNet
    // getCallbackNet({}).then(res => {
    // });
    //post接口调用-----postCallbackNet
    //调用接口***
  }else{//如果没有userId
    //从url上获取
    // let urlUserId=thisHref.split('userId=')[1];
    //多存一下userId
    // document.cookie='userId='+urlUserId;
  }
  return <div className='login_page'></div>;
}
